﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once

#include "ISnap.h"
#include "GcmpSnapInterface.h"

namespace gcmp
{
    class ICurve3d;
    /// \brief 捕捉结果
    ///
    /// 捕捉结果类型：直线类型、圆弧类型
    class ICurveSnap : public gcmp::ISnap
    {
        DEFINE_CAST_DERIVED(gcmp::ICurveSnap, gcmp::ISnap)
    public:
        /// \brief 获取捕捉的延长线信息
        /// \return ICurve3d 延长线
        virtual const ICurve3d* GetCurve3d() const = 0;

        /// \brief 析构函数
        virtual ~ICurveSnap() {}
    };
}